/* $Id: Ranking.java 49 2009-04-13 03:06:13Z henk $ */
package org.jugger.tournament.model.ranking;

import java.util.TreeSet;

import org.jugger.tournament.model.TeamStats;

/**
 * @author Sven Hamer
 */
public class Ranking extends TreeSet<TeamStats>{

	private static final long serialVersionUID = 2804846763715680412L;

	public Ranking(RankingComparator rankingComparator) {
		super(rankingComparator);
	}

	@Override
	public String toString() {
		String result = "Ranking:";
		for(TeamStats stats: this) {
			result += (result.equals("") ? "    " : "\n    ") + stats;
		}
		return result;
	}


}
